import pymysql


def first_view():
    print("""
    ===============显示=============
        按1注册   按2登录    按3退出
    =================================  
    """)
def first_select():
    result = int(input("请输入选择:"))
    if result == 1:
        register()
    elif result == 2:
        login()
    elif result == 3:
        # break
      pass
    else:
        print("请输入正确选择")
def register():
    name = input("请输入姓名")
    password = int(input("请输入密码,不少于六位:"))
    # deserve_db(name, password)
    second_view()
def login():
    name = input("请输入姓名")
    password = int(input("请输入密码,不少于六位:"))

def second_view():
    print("""
    ===============显示===================
        按1查单词   按2查看历史记录    按3注销
    ======================================  
    """)
def second_select():
    result = int(input("请输入选择:"))
    if result == 1:
        pass
    elif result == 2:
        pass
    elif result == 3:
        pass

